#include<stdio.h>
#include<pthread.h>

void* Thread_can(void* arg)
{
  int cou=0;
  while(1){
   printf("i am nomal thread!\n");
   cou++;
   if(cou==3)return "nihaoa";
  }
  return NULL;
}

int main()
{
  pthread_t tid;
  const char* arg="nihaoa";
  int ret;

  ret=pthread_create(&tid,NULL,Thread_can,(void*)arg);
  if(ret!=0){
    perror("pthread_create error!\n");
    return -1;
  }

  while(1){
    printf("i am main thread!\n");
    sleep(1);
  }

  return 0;
}
